export function getToday(splitStr = ''){
    let today = new Date();
    let year = today.getFullYear();
    let month = (today.getMonth() + 1).toString().padStart(2, '0');  // 例如：1 -> '01'
    let day = today.getDate().toString().padStart(2, '0');  // 例如：1 -> '01'
    let todayStr = ''
    if (splitStr.length === 0) {
        todayStr = `${year}${month}${day}`;
    }
    else {
        todayStr = `${year}${splitStr}${month}${splitStr}${day}`;
    }
    return todayStr;
}

